function LingXin(a)

	for i=1,a do
		for j=1,a+1 do
			if(j>=i and j<=a-i+1) then
				io.write('*');
			elseif(j<=i and j>=a-i+1) then
				io.write('*');
			else
				io.write(' ');
			end
		end   
		io.write('\n')
   
	end 
end  

io.write('LingXing ShuZhiDuiJiaoXian a=')
a=io.read()
for i=a,a+a,3 do LingXin(i) ; io.write('\n\n') end
